from sklearn.datasets import load_iris

iris = load_iris()
x = iris.data
y = iris.target
print("iris.data.shape:", x.shape)
print("属性（特征）名：", iris.feature_names)
print("类名:", iris.target_names)
print("只选择花萼长宽:", x[:, :2].shape)
print("iris.target.shape:",y.shape)